home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr01
/
jock.zip
/
TOTDEM11.ZIP
/
DEMDT2.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-02-11
|
785b
|
27 lines
program DemoDateTwo;
{DEMDT2 - example date statements}
uses DOS,CRT, totDATE;
var
M,D,Y:longint;
begin
ClrScr;
writeln(TodayInJul);
writeln(JultoStr(TodayInJul,DDMMYYYY));
writeln(FancyDateStr(TodayInJul,false,false));
writeln(FancyDateStr(TodayInJul,true,false));
writeln(FancyDateStr(TodayInJul,false,true));
writeln(FancyDateStr(TodayInJul,true,true));
writeln;
writeln(RelativeDate('02/20/56',MMDDYY,90));
writeln;
writeln(JulToStr(StartOfYear(StrToJul('30/06/1990',DDMMYYYY)),DDMMYYYY));
writeln(JulToStr(EndOfYear(StrToJul('30/06/1990',DDMMYYYY)),DDMMYYYY));
writeln;
writeln(ValidDateStr('02/29/90',MMDDYY));
writeln(ValidDate(2,29,90));
writeln(DateFormat(MMDDYY));
repeat until keypressed;
end.